package com.ynkbny.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 添加公式表-实体
 *
 * @author : YY
 * @date : 2023-8-1
 */
@ApiModel(value = "公式表", description = "")
@TableName("formula")
@Data
public class FormulaAddVO implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 统一社会信用代码 
     */
    @ApiModelProperty(value = "统一社会信用代码", example = "")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "enterprise_code")
    private String enterpriseCode;
    
    /**
     * 采集数据项编码 
     */
    @ApiModelProperty(value = "采集数据项编码", example = "")
    @TableField(value = "data_code")
    private String dataCode;
    
    /**
     * 运算符 
     */
    @ApiModelProperty(value = "运算符", example = "")
    @TableField(value = "operator")
    private String operator;
    
    /**
     * 参与运算的设备 
     */
    @ApiModelProperty(value = "参与运算的设备", example = "")
    @TableField(value = "device_id_list")
    private String deviceIdList;


    /**
     * 引用的公式id
     */
    @ApiModelProperty(value = "引用的公式id", example = "")
    @TableField(value = "formula_id")
    private String formulaId;

    private static final long serialVersionUID = 1L;
}